package com.wechat.user.controller;

import com.wechat.common.web.result.Result;
import lombok.Data;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @Data
    public static class Hello {
        private String name;
    }

    @PostMapping("/hello")
    public Result<String> hello(@RequestBody Hello hello) {
        return Result.success("hello " + hello.name);
    }
}
